package com.zx.token;

import cn.dev33.satoken.SaManager;
import cn.dev33.satoken.listener.SaTokenEventCenter;
import com.zx.token.listenr.MySaTokenListenr;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

@SpringBootApplication
@Slf4j
@EnableDiscoveryClient
public class SysUserApplication {
    
    public static void main(String[] args) {
        SpringApplication.run(SysUserApplication.class,args);
        SaTokenEventCenter.registerListener(new MySaTokenListenr());
        log.error("------SysUserApplication run ----------");
        log.error("SaToken 配置:{}" , SaManager.getConfig());
    }
}
